package qlsl.androiddesign.entity.otherentity;

import android.os.Parcel;

/**
 * Created by Administrator on 2016/9/21 0021.
 */
public class Entity extends Base {
	/**
	 * msg : success errorCode : 10000 userId : 1
	 */
	private String msg;
	private String errorCode;

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public boolean OK() {
		if (errorCode.equals("10000")) {
			return true;
		} else if (errorCode.equals("40001")) {
			return false;
		} else if (errorCode.equals("null") || msg.equals("fail")) {
			return false;
		} else if (msg.equals("success")) {
			return true;
		}
		return false;

	}
}
